import request from '@/utils/request'

// 查询温度传感器数据列表
export function listTemperatureSensor(query) {
  return request({
    url: '/system/temperatureSensor/list',
    method: 'get',
    params: query
  })
}

// 查询温度传感器数据详细
export function getTemperatureSensor(id) {
  return request({
    url: '/system/temperatureSensor/' + id,
    method: 'get'
  })
}

// 新增温度传感器数据
export function addTemperatureSensor(data) {
  return request({
    url: '/system/temperatureSensor',
    method: 'post',
    data: data
  })
}

// 修改温度传感器数据
export function updateTemperatureSensor(data) {
  return request({
    url: '/system/temperatureSensor',
    method: 'put',
    data: data
  })
}

// 删除温度传感器数据
export function delTemperatureSensor(id) {
  return request({
    url: '/system/temperatureSensor/' + id,
    method: 'delete'
  })
}
